/*
 * Copyright (c) 2009 Nathaniel Houghton <nathan@brainwerk.org>
 *                    Robert Kirchgessner <rkirchge@gmail.com>
 *
 * Permission to use, copy, modify, and distribute this software for
 * any purpose with or without fee is hereby granted, provided that
 * the above copyright notice and this permission notice appear in all
 * copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA
 * OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 * PERFORMANCE OF THIS SOFTWARE.
 *
 */

#ifndef ELM_PROT_H
#define ELM_PROT_H

#define PROT_AUTO		 		0x0
#define PROT_SAEJ1850PWM 		0x1
#define PROT_SAEJ1850VPW 		0x2
#define PROT_ISO9141	 		0x3
#define PROT_ISO14230KWP0		0x4
#define PROT_ISO14230KWP1		0x5
#define PROT_ISOCAN11B500K 		0x6
#define PROT_ISOCAN29B500K 		0x7
#define PROT_ISOCAN11B250K		0x8
#define PROT_ISOCAN29B250K 		0x9
#define PROT_SAECAN29B250K		0xA
#define PROT_USERCAN1			0xB
#define PROT_USERCAN2			0xC

#define PROTCAN(A) (A>PROT_ISO14230KWP1)

#endif
